import request from '@/utils/request'

// 查询换记录列表
export function listReplace(query) {
    return request({
        url: '/basedata/replace/list',
        method: 'get',
        params: query
    })
}

// 查询换记录详细
export function getReplace(id) {
    return request({
        url: '/basedata/replace/' + id,
        method: 'get'
    })
}

// 新增换记录
export function addReplace(data) {
    return request({
        url: '/basedata/replace',
        method: 'post',
        data: data
    })
}

// 修改换记录
export function updateReplace(data) {
    return request({
        url: '/basedata/replace',
        method: 'put',
        data: data
    })
}

// 删除换记录
export function delReplace(id) {
    return request({
        url: '/basedata/replace/' + id,
        method: 'delete'
    })
}
